package PTA_05_08;

import java.util.Scanner;

public class Main2 {
        public static void main(String[] args)
        {
            Scanner sc=new Scanner(System.in);
            Oval a= new Oval(sc.nextDouble(),sc.nextDouble());

            double s=a.area();
            double c=a.perimeter();
            System.out.print(a.toString(s,c));
        }
    }

    abstract class Shape
    {
        static double PI = 3.1415926;
        abstract double area();
        abstract double perimeter();
    }

class Oval extends Shape {
    private double a;
    private double b;

    public double getB() {
        return b;
    }

    public void setB(double b) {
        this.b = b;
    }

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public Oval() {
    }

    public Oval(double a, double b) {
        this.a = a;
        this.b = b;
    }

    double area() {
        double s = PI * a * b;
        return s;
    }

    double perimeter() {
        double c = 2 * PI * Math.sqrt((a * a + b * b) / 2);
        return c;
    }

    public String toString(double s, double c) {
        return "The area of Oval(a:" + this.a + ",b:" + this.b + ")" + " is " + s + "\n" +
                "The perimeterof Oval(a:" + this.a + ",b:" + this.b + ")" + " is " + c;
    }
}

